#ifndef WORKER_H
#define WORKER_H

#include <ctime>
#include <structure/rodove.h>
#include <db/dbhelper.h>

#include <vector>

#include <iostream>
#include <cstdio>
#include <set>
#include <map>


using std::cout;
using std::endl;

class Worker
{
private:
    time_t cal;
    string cur_year;
    string cur_month;
    string cur_day;

    DbHelper *db_helper;

    void showInfo();
    void showRozpodil();
    void showLastYearsRodove();
    void showYearDiff();
    void showToFile();

    void writeData(string task, std::vector<Rodove> data, bool PrintStream);
public:
    Worker();
    void run();

};

#endif // WORKER_H
